(0) Obligation:

Clauses:

f(A, [], RES) :- g(A, [], RES).
f(.(A, As), .(B, Bs), RES) :- f(.(B, .(A, As)), Bs, RES).
g([], RES, RES).
g(.(C, Cs), D, RES) :- g(Cs, .(C, D), RES).

Query: f(g,g,a)

(1) PrologToPrologProblemTransformerProof (SOUND transformation)

Built Prolog problem from termination graph ICLP10.

(2) Obligation:

Clauses:

gA([], T404, T405, .(T404, T405)).
gA(.(T416, T417), T418, T419, T421) :- gA(T417, T416, .(T418, T419), T421).
gB([], T31, .(T31, [])).
gB(.(T57, []), T58, .(T57, .(T58, []))).
gB(.(T94, .(T93, [])), T95, .(T93, .(T94, .(T95, [])))).
gB(.(T141, .(T140, .(T139, []))), T142, .(T139, .(T140, .(T141, .(T142, []))))).
gB(.(T198, .(T197, .(T196, .(T195, [])))), T199, .(T195, .(T196, .(T197, .(T198, .(T199, [])))))).
gB(.(T265, .(T264, .(T263, .(T262, .(T261, []))))), T266, .(T261, .(T262, .(T263, .(T264, .(T265, .(T266, []))))))).
gB(.(T342, .(T341, .(T340, .(T339, .(T338, .(T337, [])))))), T343, .(T337, .(T338, .(T339, .(T340, .(T341, .(T342, .(T343, [])))))))).
gB(.(T371, .(T370, .(T369, .(T368, .(T367, .(T366, .(T364, T365))))))), T372, T374) :- gA(T365, T364, .(T366, .(T367, .(T368, .(T369, .(T370, .(T371, .(T372, []))))))), T374).
fC([], [], []).
fC(.(T21, T22), [], T24) :- gB(T22, T21, T24).
fC(.(T472, T473), .(T471, []), T475) :- gB(.(T472, T473), T471, T475).
fC(.(T489, T490), .(T488, .(T491, T492)), T494) :- fC(.(T491, .(T488, .(T489, T490))), T492, T494).

Query: fC(g,g,a)

(3) PrologToPiTRSProof (SOUND transformation)

We use the technique of [TOCL09]. With regard to the inferred argument filtering the predicates were used in the following modes:
fC_in: (b,b,f)
gB_in: (b,b,f)
gA_in: (b,b,b,f)
Transforming Prolog into the following Term Rewriting System:
Pi-finite rewrite system:
The TRS R consists of the following rules:

fC_in_gga([], [], []) → fC_out_gga([], [], [])
fC_in_gga(.(T21, T22), [], T24) → U3_gga(T21, T22, T24, gB_in_gga(T22, T21, T24))
gB_in_gga([], T31, .(T31, [])) → gB_out_gga([], T31, .(T31, []))
gB_in_gga(.(T57, []), T58, .(T57, .(T58, []))) → gB_out_gga(.(T57, []), T58, .(T57, .(T58, [])))
gB_in_gga(.(T94, .(T93, [])), T95, .(T93, .(T94, .(T95, [])))) → gB_out_gga(.(T94, .(T93, [])), T95, .(T93, .(T94, .(T95, []))))
gB_in_gga(.(T141, .(T140, .(T139, []))), T142, .(T139, .(T140, .(T141, .(T142, []))))) → gB_out_gga(.(T141, .(T140, .(T139, []))), T142, .(T139, .(T140, .(T141, .(T142, [])))))
gB_in_gga(.(T198, .(T197, .(T196, .(T195, [])))), T199, .(T195, .(T196, .(T197, .(T198, .(T199, [])))))) → gB_out_gga(.(T198, .(T197, .(T196, .(T195, [])))), T199, .(T195, .(T196, .(T197, .(T198, .(T199, []))))))
gB_in_gga(.(T265, .(T264, .(T263, .(T262, .(T261, []))))), T266, .(T261, .(T262, .(T263, .(T264, .(T265, .(T266, []))))))) → gB_out_gga(.(T265, .(T264, .(T263, .(T262, .(T261, []))))), T266, .(T261, .(T262, .(T263, .(T264, .(T265, .(T266, [])))))))
gB_in_gga(.(T342, .(T341, .(T340, .(T339, .(T338, .(T337, [])))))), T343, .(T337, .(T338, .(T339, .(T340, .(T341, .(T342, .(T343, [])))))))) → gB_out_gga(.(T342, .(T341, .(T340, .(T339, .(T338, .(T337, [])))))), T343, .(T337, .(T338, .(T339, .(T340, .(T341, .(T342, .(T343, []))))))))
gB_in_gga(.(T371, .(T370, .(T369, .(T368, .(T367, .(T366, .(T364, T365))))))), T372, T374) → U2_gga(T371, T370, T369, T368, T367, T366, T364, T365, T372, T374, gA_in_ggga(T365, T364, .(T366, .(T367, .(T368, .(T369, .(T370, .(T371, .(T372, []))))))), T374))
gA_in_ggga([], T404, T405, .(T404, T405)) → gA_out_ggga([], T404, T405, .(T404, T405))
gA_in_ggga(.(T416, T417), T418, T419, T421) → U1_ggga(T416, T417, T418, T419, T421, gA_in_ggga(T417, T416, .(T418, T419), T421))
U1_ggga(T416, T417, T418, T419, T421, gA_out_ggga(T417, T416, .(T418, T419), T421)) → gA_out_ggga(.(T416, T417), T418, T419, T421)
U2_gga(T371, T370, T369, T368, T367, T366, T364, T365, T372, T374, gA_out_ggga(T365, T364, .(T366, .(T367, .(T368, .(T369, .(T370, .(T371, .(T372, []))))))), T374)) → gB_out_gga(.(T371, .(T370, .(T369, .(T368, .(T367, .(T366, .(T364, T365))))))), T372, T374)
U3_gga(T21, T22, T24, gB_out_gga(T22, T21, T24)) → fC_out_gga(.(T21, T22), [], T24)
fC_in_gga(.(T472, T473), .(T471, []), T475) → U4_gga(T472, T473, T471, T475, gB_in_gga(.(T472, T473), T471, T475))
U4_gga(T472, T473, T471, T475, gB_out_gga(.(T472, T473), T471, T475)) → fC_out_gga(.(T472, T473), .(T471, []), T475)
fC_in_gga(.(T489, T490), .(T488, .(T491, T492)), T494) → U5_gga(T489, T490, T488, T491, T492, T494, fC_in_gga(.(T491, .(T488, .(T489, T490))), T492, T494))
U5_gga(T489, T490, T488, T491, T492, T494, fC_out_gga(.(T491, .(T488, .(T489, T490))), T492, T494)) → fC_out_gga(.(T489, T490), .(T488, .(T491, T492)), T494)

The argument filtering Pi contains the following mapping:
fC_in_gga(x1, x2, x3)  =  fC_in_gga(x1, x2)
[]  =  []
fC_out_gga(x1, x2, x3)  =  fC_out_gga(x1, x2, x3)
.(x1, x2)  =  .(x1, x2)
U3_gga(x1, x2, x3, x4)  =  U3_gga(x1, x2, x4)
gB_in_gga(x1, x2, x3)  =  gB_in_gga(x1, x2)
gB_out_gga(x1, x2, x3)  =  gB_out_gga(x1, x2, x3)
U2_gga(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11)  =  U2_gga(x1, x2, x3, x4, x5, x6, x7, x8, x9, x11)
gA_in_ggga(x1, x2, x3, x4)  =  gA_in_ggga(x1, x2, x3)
gA_out_ggga(x1, x2, x3, x4)  =  gA_out_ggga(x1, x2, x3, x4)
U1_ggga(x1, x2, x3, x4, x5, x6)  =  U1_ggga(x1, x2, x3, x4, x6)
U4_gga(x1, x2, x3, x4, x5)  =  U4_gga(x1, x2, x3, x5)
U5_gga(x1, x2, x3, x4, x5, x6, x7)  =  U5_gga(x1, x2, x3, x4, x5, x7)

Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog

(4) Obligation:

Pi-finite rewrite system:
The TRS R consists of the following rules:

fC_in_gga([], [], []) → fC_out_gga([], [], [])
fC_in_gga(.(T21, T22), [], T24) → U3_gga(T21, T22, T24, gB_in_gga(T22, T21, T24))
gB_in_gga([], T31, .(T31, [])) → gB_out_gga([], T31, .(T31, []))
gB_in_gga(.(T57, []), T58, .(T57, .(T58, []))) → gB_out_gga(.(T57, []), T58, .(T57, .(T58, [])))
gB_in_gga(.(T94, .(T93, [])), T95, .(T93, .(T94, .(T95, [])))) → gB_out_gga(.(T94, .(T93, [])), T95, .(T93, .(T94, .(T95, []))))
gB_in_gga(.(T141, .(T140, .(T139, []))), T142, .(T139, .(T140, .(T141, .(T142, []))))) → gB_out_gga(.(T141, .(T140, .(T139, []))), T142, .(T139, .(T140, .(T141, .(T142, [])))))
gB_in_gga(.(T198, .(T197, .(T196, .(T195, [])))), T199, .(T195, .(T196, .(T197, .(T198, .(T199, [])))))) → gB_out_gga(.(T198, .(T197, .(T196, .(T195, [])))), T199, .(T195, .(T196, .(T197, .(T198, .(T199, []))))))
gB_in_gga(.(T265, .(T264, .(T263, .(T262, .(T261, []))))), T266, .(T261, .(T262, .(T263, .(T264, .(T265, .(T266, []))))))) → gB_out_gga(.(T265, .(T264, .(T263, .(T262, .(T261, []))))), T266, .(T261, .(T262, .(T263, .(T264, .(T265, .(T266, [])))))))
gB_in_gga(.(T342, .(T341, .(T340, .(T339, .(T338, .(T337, [])))))), T343, .(T337, .(T338, .(T339, .(T340, .(T341, .(T342, .(T343, [])))))))) → gB_out_gga(.(T342, .(T341, .(T340, .(T339, .(T338, .(T337, [])))))), T343, .(T337, .(T338, .(T339, .(T340, .(T341, .(T342, .(T343, []))))))))
gB_in_gga(.(T371, .(T370, .(T369, .(T368, .(T367, .(T366, .(T364, T365))))))), T372, T374) → U2_gga(T371, T370, T369, T368, T367, T366, T364, T365, T372, T374, gA_in_ggga(T365, T364, .(T366, .(T367, .(T368, .(T369, .(T370, .(T371, .(T372, []))))))), T374))
gA_in_ggga([], T404, T405, .(T404, T405)) → gA_out_ggga([], T404, T405, .(T404, T405))
gA_in_ggga(.(T416, T417), T418, T419, T421) → U1_ggga(T416, T417, T418, T419, T421, gA_in_ggga(T417, T416, .(T418, T419), T421))
U1_ggga(T416, T417, T418, T419, T421, gA_out_ggga(T417, T416, .(T418, T419), T421)) → gA_out_ggga(.(T416, T417), T418, T419, T421)
U2_gga(T371, T370, T369, T368, T367, T366, T364, T365, T372, T374, gA_out_ggga(T365, T364, .(T366, .(T367, .(T368, .(T369, .(T370, .(T371, .(T372, []))))))), T374)) → gB_out_gga(.(T371, .(T370, .(T369, .(T368, .(T367, .(T366, .(T364, T365))))))), T372, T374)
U3_gga(T21, T22, T24, gB_out_gga(T22, T21, T24)) → fC_out_gga(.(T21, T22), [], T24)
fC_in_gga(.(T472, T473), .(T471, []), T475) → U4_gga(T472, T473, T471, T475, gB_in_gga(.(T472, T473), T471, T475))
U4_gga(T472, T473, T471, T475, gB_out_gga(.(T472, T473), T471, T475)) → fC_out_gga(.(T472, T473), .(T471, []), T475)
fC_in_gga(.(T489, T490), .(T488, .(T491, T492)), T494) → U5_gga(T489, T490, T488, T491, T492, T494, fC_in_gga(.(T491, .(T488, .(T489, T490))), T492, T494))
U5_gga(T489, T490, T488, T491, T492, T494, fC_out_gga(.(T491, .(T488, .(T489, T490))), T492, T494)) → fC_out_gga(.(T489, T490), .(T488, .(T491, T492)), T494)

The argument filtering Pi contains the following mapping:
fC_in_gga(x1, x2, x3)  =  fC_in_gga(x1, x2)
[]  =  []
fC_out_gga(x1, x2, x3)  =  fC_out_gga(x1, x2, x3)
.(x1, x2)  =  .(x1, x2)
U3_gga(x1, x2, x3, x4)  =  U3_gga(x1, x2, x4)
gB_in_gga(x1, x2, x3)  =  gB_in_gga(x1, x2)
gB_out_gga(x1, x2, x3)  =  gB_out_gga(x1, x2, x3)
U2_gga(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11)  =  U2_gga(x1, x2, x3, x4, x5, x6, x7, x8, x9, x11)
gA_in_ggga(x1, x2, x3, x4)  =  gA_in_ggga(x1, x2, x3)
gA_out_ggga(x1, x2, x3, x4)  =  gA_out_ggga(x1, x2, x3, x4)
U1_ggga(x1, x2, x3, x4, x5, x6)  =  U1_ggga(x1, x2, x3, x4, x6)
U4_gga(x1, x2, x3, x4, x5)  =  U4_gga(x1, x2, x3, x5)
U5_gga(x1, x2, x3, x4, x5, x6, x7)  =  U5_gga(x1, x2, x3, x4, x5, x7)

(5) DependencyPairsProof (EQUIVALENT transformation)

Using Dependency Pairs [AG00,LOPSTR] we result in the following initial DP problem:
Pi DP problem:
The TRS P consists of the following rules:

FC_IN_GGA(.(T21, T22), [], T24) → U3_GGA(T21, T22, T24, gB_in_gga(T22, T21, T24))
FC_IN_GGA(.(T21, T22), [], T24) → GB_IN_GGA(T22, T21, T24)
GB_IN_GGA(.(T371, .(T370, .(T369, .(T368, .(T367, .(T366, .(T364, T365))))))), T372, T374) → U2_GGA(T371, T370, T369, T368, T367, T366, T364, T365, T372, T374, gA_in_ggga(T365, T364, .(T366, .(T367, .(T368, .(T369, .(T370, .(T371, .(T372, []))))))), T374))
GB_IN_GGA(.(T371, .(T370, .(T369, .(T368, .(T367, .(T366, .(T364, T365))))))), T372, T374) → GA_IN_GGGA(T365, T364, .(T366, .(T367, .(T368, .(T369, .(T370, .(T371, .(T372, []))))))), T374)
GA_IN_GGGA(.(T416, T417), T418, T419, T421) → U1_GGGA(T416, T417, T418, T419, T421, gA_in_ggga(T417, T416, .(T418, T419), T421))
GA_IN_GGGA(.(T416, T417), T418, T419, T421) → GA_IN_GGGA(T417, T416, .(T418, T419), T421)
FC_IN_GGA(.(T472, T473), .(T471, []), T475) → U4_GGA(T472, T473, T471, T475, gB_in_gga(.(T472, T473), T471, T475))
FC_IN_GGA(.(T472, T473), .(T471, []), T475) → GB_IN_GGA(.(T472, T473), T471, T475)
FC_IN_GGA(.(T489, T490), .(T488, .(T491, T492)), T494) → U5_GGA(T489, T490, T488, T491, T492, T494, fC_in_gga(.(T491, .(T488, .(T489, T490))), T492, T494))
FC_IN_GGA(.(T489, T490), .(T488, .(T491, T492)), T494) → FC_IN_GGA(.(T491, .(T488, .(T489, T490))), T492, T494)

The TRS R consists of the following rules:

fC_in_gga([], [], []) → fC_out_gga([], [], [])
fC_in_gga(.(T21, T22), [], T24) → U3_gga(T21, T22, T24, gB_in_gga(T22, T21, T24))
gB_in_gga([], T31, .(T31, [])) → gB_out_gga([], T31, .(T31, []))
gB_in_gga(.(T57, []), T58, .(T57, .(T58, []))) → gB_out_gga(.(T57, []), T58, .(T57, .(T58, [])))
gB_in_gga(.(T94, .(T93, [])), T95, .(T93, .(T94, .(T95, [])))) → gB_out_gga(.(T94, .(T93, [])), T95, .(T93, .(T94, .(T95, []))))
gB_in_gga(.(T141, .(T140, .(T139, []))), T142, .(T139, .(T140, .(T141, .(T142, []))))) → gB_out_gga(.(T141, .(T140, .(T139, []))), T142, .(T139, .(T140, .(T141, .(T142, [])))))
gB_in_gga(.(T198, .(T197, .(T196, .(T195, [])))), T199, .(T195, .(T196, .(T197, .(T198, .(T199, [])))))) → gB_out_gga(.(T198, .(T197, .(T196, .(T195, [])))), T199, .(T195, .(T196, .(T197, .(T198, .(T199, []))))))
gB_in_gga(.(T265, .(T264, .(T263, .(T262, .(T261, []))))), T266, .(T261, .(T262, .(T263, .(T264, .(T265, .(T266, []))))))) → gB_out_gga(.(T265, .(T264, .(T263, .(T262, .(T261, []))))), T266, .(T261, .(T262, .(T263, .(T264, .(T265, .(T266, [])))))))
gB_in_gga(.(T342, .(T341, .(T340, .(T339, .(T338, .(T337, [])))))), T343, .(T337, .(T338, .(T339, .(T340, .(T341, .(T342, .(T343, [])))))))) → gB_out_gga(.(T342, .(T341, .(T340, .(T339, .(T338, .(T337, [])))))), T343, .(T337, .(T338, .(T339, .(T340, .(T341, .(T342, .(T343, []))))))))
gB_in_gga(.(T371, .(T370, .(T369, .(T368, .(T367, .(T366, .(T364, T365))))))), T372, T374) → U2_gga(T371, T370, T369, T368, T367, T366, T364, T365, T372, T374, gA_in_ggga(T365, T364, .(T366, .(T367, .(T368, .(T369, .(T370, .(T371, .(T372, []))))))), T374))
gA_in_ggga([], T404, T405, .(T404, T405)) → gA_out_ggga([], T404, T405, .(T404, T405))
gA_in_ggga(.(T416, T417), T418, T419, T421) → U1_ggga(T416, T417, T418, T419, T421, gA_in_ggga(T417, T416, .(T418, T419), T421))
U1_ggga(T416, T417, T418, T419, T421, gA_out_ggga(T417, T416, .(T418, T419), T421)) → gA_out_ggga(.(T416, T417), T418, T419, T421)
U2_gga(T371, T370, T369, T368, T367, T366, T364, T365, T372, T374, gA_out_ggga(T365, T364, .(T366, .(T367, .(T368, .(T369, .(T370, .(T371, .(T372, []))))))), T374)) → gB_out_gga(.(T371, .(T370, .(T369, .(T368, .(T367, .(T366, .(T364, T365))))))), T372, T374)
U3_gga(T21, T22, T24, gB_out_gga(T22, T21, T24)) → fC_out_gga(.(T21, T22), [], T24)
fC_in_gga(.(T472, T473), .(T471, []), T475) → U4_gga(T472, T473, T471, T475, gB_in_gga(.(T472, T473), T471, T475))
U4_gga(T472, T473, T471, T475, gB_out_gga(.(T472, T473), T471, T475)) → fC_out_gga(.(T472, T473), .(T471, []), T475)
fC_in_gga(.(T489, T490), .(T488, .(T491, T492)), T494) → U5_gga(T489, T490, T488, T491, T492, T494, fC_in_gga(.(T491, .(T488, .(T489, T490))), T492, T494))
U5_gga(T489, T490, T488, T491, T492, T494, fC_out_gga(.(T491, .(T488, .(T489, T490))), T492, T494)) → fC_out_gga(.(T489, T490), .(T488, .(T491, T492)), T494)

The argument filtering Pi contains the following mapping:
fC_in_gga(x1, x2, x3)  =  fC_in_gga(x1, x2)
[]  =  []
fC_out_gga(x1, x2, x3)  =  fC_out_gga(x1, x2, x3)
.(x1, x2)  =  .(x1, x2)
U3_gga(x1, x2, x3, x4)  =  U3_gga(x1, x2, x4)
gB_in_gga(x1, x2, x3)  =  gB_in_gga(x1, x2)
gB_out_gga(x1, x2, x3)  =  gB_out_gga(x1, x2, x3)
U2_gga(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11)  =  U2_gga(x1, x2, x3, x4, x5, x6, x7, x8, x9, x11)
gA_in_ggga(x1, x2, x3, x4)  =  gA_in_ggga(x1, x2, x3)
gA_out_ggga(x1, x2, x3, x4)  =  gA_out_ggga(x1, x2, x3, x4)
U1_ggga(x1, x2, x3, x4, x5, x6)  =  U1_ggga(x1, x2, x3, x4, x6)
U4_gga(x1, x2, x3, x4, x5)  =  U4_gga(x1, x2, x3, x5)
U5_gga(x1, x2, x3, x4, x5, x6, x7)  =  U5_gga(x1, x2, x3, x4, x5, x7)
FC_IN_GGA(x1, x2, x3)  =  FC_IN_GGA(x1, x2)
U3_GGA(x1, x2, x3, x4)  =  U3_GGA(x1, x2, x4)
GB_IN_GGA(x1, x2, x3)  =  GB_IN_GGA(x1, x2)
U2_GGA(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11)  =  U2_GGA(x1, x2, x3, x4, x5, x6, x7, x8, x9, x11)
GA_IN_GGGA(x1, x2, x3, x4)  =  GA_IN_GGGA(x1, x2, x3)
U1_GGGA(x1, x2, x3, x4, x5, x6)  =  U1_GGGA(x1, x2, x3, x4, x6)
U4_GGA(x1, x2, x3, x4, x5)  =  U4_GGA(x1, x2, x3, x5)
U5_GGA(x1, x2, x3, x4, x5, x6, x7)  =  U5_GGA(x1, x2, x3, x4, x5, x7)

We have to consider all (P,R,Pi)-chains

(6) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

FC_IN_GGA(.(T21, T22), [], T24) → U3_GGA(T21, T22, T24, gB_in_gga(T22, T21, T24))
FC_IN_GGA(.(T21, T22), [], T24) → GB_IN_GGA(T22, T21, T24)
GB_IN_GGA(.(T371, .(T370, .(T369, .(T368, .(T367, .(T366, .(T364, T365))))))), T372, T374) → U2_GGA(T371, T370, T369, T368, T367, T366, T364, T365, T372, T374, gA_in_ggga(T365, T364, .(T366, .(T367, .(T368, .(T369, .(T370, .(T371, .(T372, []))))))), T374))
GB_IN_GGA(.(T371, .(T370, .(T369, .(T368, .(T367, .(T366, .(T364, T365))))))), T372, T374) → GA_IN_GGGA(T365, T364, .(T366, .(T367, .(T368, .(T369, .(T370, .(T371, .(T372, []))))))), T374)
GA_IN_GGGA(.(T416, T417), T418, T419, T421) → U1_GGGA(T416, T417, T418, T419, T421, gA_in_ggga(T417, T416, .(T418, T419), T421))
GA_IN_GGGA(.(T416, T417), T418, T419, T421) → GA_IN_GGGA(T417, T416, .(T418, T419), T421)
FC_IN_GGA(.(T472, T473), .(T471, []), T475) → U4_GGA(T472, T473, T471, T475, gB_in_gga(.(T472, T473), T471, T475))
FC_IN_GGA(.(T472, T473), .(T471, []), T475) → GB_IN_GGA(.(T472, T473), T471, T475)
FC_IN_GGA(.(T489, T490), .(T488, .(T491, T492)), T494) → U5_GGA(T489, T490, T488, T491, T492, T494, fC_in_gga(.(T491, .(T488, .(T489, T490))), T492, T494))
FC_IN_GGA(.(T489, T490), .(T488, .(T491, T492)), T494) → FC_IN_GGA(.(T491, .(T488, .(T489, T490))), T492, T494)

The TRS R consists of the following rules:

fC_in_gga([], [], []) → fC_out_gga([], [], [])
fC_in_gga(.(T21, T22), [], T24) → U3_gga(T21, T22, T24, gB_in_gga(T22, T21, T24))
gB_in_gga([], T31, .(T31, [])) → gB_out_gga([], T31, .(T31, []))
gB_in_gga(.(T57, []), T58, .(T57, .(T58, []))) → gB_out_gga(.(T57, []), T58, .(T57, .(T58, [])))
gB_in_gga(.(T94, .(T93, [])), T95, .(T93, .(T94, .(T95, [])))) → gB_out_gga(.(T94, .(T93, [])), T95, .(T93, .(T94, .(T95, []))))
gB_in_gga(.(T141, .(T140, .(T139, []))), T142, .(T139, .(T140, .(T141, .(T142, []))))) → gB_out_gga(.(T141, .(T140, .(T139, []))), T142, .(T139, .(T140, .(T141, .(T142, [])))))
gB_in_gga(.(T198, .(T197, .(T196, .(T195, [])))), T199, .(T195, .(T196, .(T197, .(T198, .(T199, [])))))) → gB_out_gga(.(T198, .(T197, .(T196, .(T195, [])))), T199, .(T195, .(T196, .(T197, .(T198, .(T199, []))))))
gB_in_gga(.(T265, .(T264, .(T263, .(T262, .(T261, []))))), T266, .(T261, .(T262, .(T263, .(T264, .(T265, .(T266, []))))))) → gB_out_gga(.(T265, .(T264, .(T263, .(T262, .(T261, []))))), T266, .(T261, .(T262, .(T263, .(T264, .(T265, .(T266, [])))))))
gB_in_gga(.(T342, .(T341, .(T340, .(T339, .(T338, .(T337, [])))))), T343, .(T337, .(T338, .(T339, .(T340, .(T341, .(T342, .(T343, [])))))))) → gB_out_gga(.(T342, .(T341, .(T340, .(T339, .(T338, .(T337, [])))))), T343, .(T337, .(T338, .(T339, .(T340, .(T341, .(T342, .(T343, []))))))))
gB_in_gga(.(T371, .(T370, .(T369, .(T368, .(T367, .(T366, .(T364, T365))))))), T372, T374) → U2_gga(T371, T370, T369, T368, T367, T366, T364, T365, T372, T374, gA_in_ggga(T365, T364, .(T366, .(T367, .(T368, .(T369, .(T370, .(T371, .(T372, []))))))), T374))
gA_in_ggga([], T404, T405, .(T404, T405)) → gA_out_ggga([], T404, T405, .(T404, T405))
gA_in_ggga(.(T416, T417), T418, T419, T421) → U1_ggga(T416, T417, T418, T419, T421, gA_in_ggga(T417, T416, .(T418, T419), T421))
U1_ggga(T416, T417, T418, T419, T421, gA_out_ggga(T417, T416, .(T418, T419), T421)) → gA_out_ggga(.(T416, T417), T418, T419, T421)
U2_gga(T371, T370, T369, T368, T367, T366, T364, T365, T372, T374, gA_out_ggga(T365, T364, .(T366, .(T367, .(T368, .(T369, .(T370, .(T371, .(T372, []))))))), T374)) → gB_out_gga(.(T371, .(T370, .(T369, .(T368, .(T367, .(T366, .(T364, T365))))))), T372, T374)
U3_gga(T21, T22, T24, gB_out_gga(T22, T21, T24)) → fC_out_gga(.(T21, T22), [], T24)
fC_in_gga(.(T472, T473), .(T471, []), T475) → U4_gga(T472, T473, T471, T475, gB_in_gga(.(T472, T473), T471, T475))
U4_gga(T472, T473, T471, T475, gB_out_gga(.(T472, T473), T471, T475)) → fC_out_gga(.(T472, T473), .(T471, []), T475)
fC_in_gga(.(T489, T490), .(T488, .(T491, T492)), T494) → U5_gga(T489, T490, T488, T491, T492, T494, fC_in_gga(.(T491, .(T488, .(T489, T490))), T492, T494))
U5_gga(T489, T490, T488, T491, T492, T494, fC_out_gga(.(T491, .(T488, .(T489, T490))), T492, T494)) → fC_out_gga(.(T489, T490), .(T488, .(T491, T492)), T494)

The argument filtering Pi contains the following mapping:
fC_in_gga(x1, x2, x3)  =  fC_in_gga(x1, x2)
[]  =  []
fC_out_gga(x1, x2, x3)  =  fC_out_gga(x1, x2, x3)
.(x1, x2)  =  .(x1, x2)
U3_gga(x1, x2, x3, x4)  =  U3_gga(x1, x2, x4)
gB_in_gga(x1, x2, x3)  =  gB_in_gga(x1, x2)
gB_out_gga(x1, x2, x3)  =  gB_out_gga(x1, x2, x3)
U2_gga(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11)  =  U2_gga(x1, x2, x3, x4, x5, x6, x7, x8, x9, x11)
gA_in_ggga(x1, x2, x3, x4)  =  gA_in_ggga(x1, x2, x3)
gA_out_ggga(x1, x2, x3, x4)  =  gA_out_ggga(x1, x2, x3, x4)
U1_ggga(x1, x2, x3, x4, x5, x6)  =  U1_ggga(x1, x2, x3, x4, x6)
U4_gga(x1, x2, x3, x4, x5)  =  U4_gga(x1, x2, x3, x5)
U5_gga(x1, x2, x3, x4, x5, x6, x7)  =  U5_gga(x1, x2, x3, x4, x5, x7)
FC_IN_GGA(x1, x2, x3)  =  FC_IN_GGA(x1, x2)
U3_GGA(x1, x2, x3, x4)  =  U3_GGA(x1, x2, x4)
GB_IN_GGA(x1, x2, x3)  =  GB_IN_GGA(x1, x2)
U2_GGA(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11)  =  U2_GGA(x1, x2, x3, x4, x5, x6, x7, x8, x9, x11)
GA_IN_GGGA(x1, x2, x3, x4)  =  GA_IN_GGGA(x1, x2, x3)
U1_GGGA(x1, x2, x3, x4, x5, x6)  =  U1_GGGA(x1, x2, x3, x4, x6)
U4_GGA(x1, x2, x3, x4, x5)  =  U4_GGA(x1, x2, x3, x5)
U5_GGA(x1, x2, x3, x4, x5, x6, x7)  =  U5_GGA(x1, x2, x3, x4, x5, x7)

We have to consider all (P,R,Pi)-chains

(7) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LOPSTR] contains 2 SCCs with 8 less nodes.

(8) Complex Obligation (AND)

(9) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

GA_IN_GGGA(.(T416, T417), T418, T419, T421) → GA_IN_GGGA(T417, T416, .(T418, T419), T421)

The TRS R consists of the following rules:

fC_in_gga([], [], []) → fC_out_gga([], [], [])
fC_in_gga(.(T21, T22), [], T24) → U3_gga(T21, T22, T24, gB_in_gga(T22, T21, T24))
gB_in_gga([], T31, .(T31, [])) → gB_out_gga([], T31, .(T31, []))
gB_in_gga(.(T57, []), T58, .(T57, .(T58, []))) → gB_out_gga(.(T57, []), T58, .(T57, .(T58, [])))
gB_in_gga(.(T94, .(T93, [])), T95, .(T93, .(T94, .(T95, [])))) → gB_out_gga(.(T94, .(T93, [])), T95, .(T93, .(T94, .(T95, []))))
gB_in_gga(.(T141, .(T140, .(T139, []))), T142, .(T139, .(T140, .(T141, .(T142, []))))) → gB_out_gga(.(T141, .(T140, .(T139, []))), T142, .(T139, .(T140, .(T141, .(T142, [])))))
gB_in_gga(.(T198, .(T197, .(T196, .(T195, [])))), T199, .(T195, .(T196, .(T197, .(T198, .(T199, [])))))) → gB_out_gga(.(T198, .(T197, .(T196, .(T195, [])))), T199, .(T195, .(T196, .(T197, .(T198, .(T199, []))))))
gB_in_gga(.(T265, .(T264, .(T263, .(T262, .(T261, []))))), T266, .(T261, .(T262, .(T263, .(T264, .(T265, .(T266, []))))))) → gB_out_gga(.(T265, .(T264, .(T263, .(T262, .(T261, []))))), T266, .(T261, .(T262, .(T263, .(T264, .(T265, .(T266, [])))))))
gB_in_gga(.(T342, .(T341, .(T340, .(T339, .(T338, .(T337, [])))))), T343, .(T337, .(T338, .(T339, .(T340, .(T341, .(T342, .(T343, [])))))))) → gB_out_gga(.(T342, .(T341, .(T340, .(T339, .(T338, .(T337, [])))))), T343, .(T337, .(T338, .(T339, .(T340, .(T341, .(T342, .(T343, []))))))))
gB_in_gga(.(T371, .(T370, .(T369, .(T368, .(T367, .(T366, .(T364, T365))))))), T372, T374) → U2_gga(T371, T370, T369, T368, T367, T366, T364, T365, T372, T374, gA_in_ggga(T365, T364, .(T366, .(T367, .(T368, .(T369, .(T370, .(T371, .(T372, []))))))), T374))
gA_in_ggga([], T404, T405, .(T404, T405)) → gA_out_ggga([], T404, T405, .(T404, T405))
gA_in_ggga(.(T416, T417), T418, T419, T421) → U1_ggga(T416, T417, T418, T419, T421, gA_in_ggga(T417, T416, .(T418, T419), T421))
U1_ggga(T416, T417, T418, T419, T421, gA_out_ggga(T417, T416, .(T418, T419), T421)) → gA_out_ggga(.(T416, T417), T418, T419, T421)
U2_gga(T371, T370, T369, T368, T367, T366, T364, T365, T372, T374, gA_out_ggga(T365, T364, .(T366, .(T367, .(T368, .(T369, .(T370, .(T371, .(T372, []))))))), T374)) → gB_out_gga(.(T371, .(T370, .(T369, .(T368, .(T367, .(T366, .(T364, T365))))))), T372, T374)
U3_gga(T21, T22, T24, gB_out_gga(T22, T21, T24)) → fC_out_gga(.(T21, T22), [], T24)
fC_in_gga(.(T472, T473), .(T471, []), T475) → U4_gga(T472, T473, T471, T475, gB_in_gga(.(T472, T473), T471, T475))
U4_gga(T472, T473, T471, T475, gB_out_gga(.(T472, T473), T471, T475)) → fC_out_gga(.(T472, T473), .(T471, []), T475)
fC_in_gga(.(T489, T490), .(T488, .(T491, T492)), T494) → U5_gga(T489, T490, T488, T491, T492, T494, fC_in_gga(.(T491, .(T488, .(T489, T490))), T492, T494))
U5_gga(T489, T490, T488, T491, T492, T494, fC_out_gga(.(T491, .(T488, .(T489, T490))), T492, T494)) → fC_out_gga(.(T489, T490), .(T488, .(T491, T492)), T494)

The argument filtering Pi contains the following mapping:
fC_in_gga(x1, x2, x3)  =  fC_in_gga(x1, x2)
[]  =  []
fC_out_gga(x1, x2, x3)  =  fC_out_gga(x1, x2, x3)
.(x1, x2)  =  .(x1, x2)
U3_gga(x1, x2, x3, x4)  =  U3_gga(x1, x2, x4)
gB_in_gga(x1, x2, x3)  =  gB_in_gga(x1, x2)
gB_out_gga(x1, x2, x3)  =  gB_out_gga(x1, x2, x3)
U2_gga(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11)  =  U2_gga(x1, x2, x3, x4, x5, x6, x7, x8, x9, x11)
gA_in_ggga(x1, x2, x3, x4)  =  gA_in_ggga(x1, x2, x3)
gA_out_ggga(x1, x2, x3, x4)  =  gA_out_ggga(x1, x2, x3, x4)
U1_ggga(x1, x2, x3, x4, x5, x6)  =  U1_ggga(x1, x2, x3, x4, x6)
U4_gga(x1, x2, x3, x4, x5)  =  U4_gga(x1, x2, x3, x5)
U5_gga(x1, x2, x3, x4, x5, x6, x7)  =  U5_gga(x1, x2, x3, x4, x5, x7)
GA_IN_GGGA(x1, x2, x3, x4)  =  GA_IN_GGGA(x1, x2, x3)

We have to consider all (P,R,Pi)-chains

(10) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(11) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

GA_IN_GGGA(.(T416, T417), T418, T419, T421) → GA_IN_GGGA(T417, T416, .(T418, T419), T421)

R is empty.
The argument filtering Pi contains the following mapping:
.(x1, x2)  =  .(x1, x2)
GA_IN_GGGA(x1, x2, x3, x4)  =  GA_IN_GGGA(x1, x2, x3)

We have to consider all (P,R,Pi)-chains

(12) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(13) Obligation:

Q DP problem:
The TRS P consists of the following rules:

GA_IN_GGGA(.(T416, T417), T418, T419) → GA_IN_GGGA(T417, T416, .(T418, T419))

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(14) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • GA_IN_GGGA(.(T416, T417), T418, T419) → GA_IN_GGGA(T417, T416, .(T418, T419))
    The graph contains the following edges 1 > 1, 1 > 2

(15) YES

(16) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

FC_IN_GGA(.(T489, T490), .(T488, .(T491, T492)), T494) → FC_IN_GGA(.(T491, .(T488, .(T489, T490))), T492, T494)

The TRS R consists of the following rules:

fC_in_gga([], [], []) → fC_out_gga([], [], [])
fC_in_gga(.(T21, T22), [], T24) → U3_gga(T21, T22, T24, gB_in_gga(T22, T21, T24))
gB_in_gga([], T31, .(T31, [])) → gB_out_gga([], T31, .(T31, []))
gB_in_gga(.(T57, []), T58, .(T57, .(T58, []))) → gB_out_gga(.(T57, []), T58, .(T57, .(T58, [])))
gB_in_gga(.(T94, .(T93, [])), T95, .(T93, .(T94, .(T95, [])))) → gB_out_gga(.(T94, .(T93, [])), T95, .(T93, .(T94, .(T95, []))))
gB_in_gga(.(T141, .(T140, .(T139, []))), T142, .(T139, .(T140, .(T141, .(T142, []))))) → gB_out_gga(.(T141, .(T140, .(T139, []))), T142, .(T139, .(T140, .(T141, .(T142, [])))))
gB_in_gga(.(T198, .(T197, .(T196, .(T195, [])))), T199, .(T195, .(T196, .(T197, .(T198, .(T199, [])))))) → gB_out_gga(.(T198, .(T197, .(T196, .(T195, [])))), T199, .(T195, .(T196, .(T197, .(T198, .(T199, []))))))
gB_in_gga(.(T265, .(T264, .(T263, .(T262, .(T261, []))))), T266, .(T261, .(T262, .(T263, .(T264, .(T265, .(T266, []))))))) → gB_out_gga(.(T265, .(T264, .(T263, .(T262, .(T261, []))))), T266, .(T261, .(T262, .(T263, .(T264, .(T265, .(T266, [])))))))
gB_in_gga(.(T342, .(T341, .(T340, .(T339, .(T338, .(T337, [])))))), T343, .(T337, .(T338, .(T339, .(T340, .(T341, .(T342, .(T343, [])))))))) → gB_out_gga(.(T342, .(T341, .(T340, .(T339, .(T338, .(T337, [])))))), T343, .(T337, .(T338, .(T339, .(T340, .(T341, .(T342, .(T343, []))))))))
gB_in_gga(.(T371, .(T370, .(T369, .(T368, .(T367, .(T366, .(T364, T365))))))), T372, T374) → U2_gga(T371, T370, T369, T368, T367, T366, T364, T365, T372, T374, gA_in_ggga(T365, T364, .(T366, .(T367, .(T368, .(T369, .(T370, .(T371, .(T372, []))))))), T374))
gA_in_ggga([], T404, T405, .(T404, T405)) → gA_out_ggga([], T404, T405, .(T404, T405))
gA_in_ggga(.(T416, T417), T418, T419, T421) → U1_ggga(T416, T417, T418, T419, T421, gA_in_ggga(T417, T416, .(T418, T419), T421))
U1_ggga(T416, T417, T418, T419, T421, gA_out_ggga(T417, T416, .(T418, T419), T421)) → gA_out_ggga(.(T416, T417), T418, T419, T421)
U2_gga(T371, T370, T369, T368, T367, T366, T364, T365, T372, T374, gA_out_ggga(T365, T364, .(T366, .(T367, .(T368, .(T369, .(T370, .(T371, .(T372, []))))))), T374)) → gB_out_gga(.(T371, .(T370, .(T369, .(T368, .(T367, .(T366, .(T364, T365))))))), T372, T374)
U3_gga(T21, T22, T24, gB_out_gga(T22, T21, T24)) → fC_out_gga(.(T21, T22), [], T24)
fC_in_gga(.(T472, T473), .(T471, []), T475) → U4_gga(T472, T473, T471, T475, gB_in_gga(.(T472, T473), T471, T475))
U4_gga(T472, T473, T471, T475, gB_out_gga(.(T472, T473), T471, T475)) → fC_out_gga(.(T472, T473), .(T471, []), T475)
fC_in_gga(.(T489, T490), .(T488, .(T491, T492)), T494) → U5_gga(T489, T490, T488, T491, T492, T494, fC_in_gga(.(T491, .(T488, .(T489, T490))), T492, T494))
U5_gga(T489, T490, T488, T491, T492, T494, fC_out_gga(.(T491, .(T488, .(T489, T490))), T492, T494)) → fC_out_gga(.(T489, T490), .(T488, .(T491, T492)), T494)

The argument filtering Pi contains the following mapping:
fC_in_gga(x1, x2, x3)  =  fC_in_gga(x1, x2)
[]  =  []
fC_out_gga(x1, x2, x3)  =  fC_out_gga(x1, x2, x3)
.(x1, x2)  =  .(x1, x2)
U3_gga(x1, x2, x3, x4)  =  U3_gga(x1, x2, x4)
gB_in_gga(x1, x2, x3)  =  gB_in_gga(x1, x2)
gB_out_gga(x1, x2, x3)  =  gB_out_gga(x1, x2, x3)
U2_gga(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11)  =  U2_gga(x1, x2, x3, x4, x5, x6, x7, x8, x9, x11)
gA_in_ggga(x1, x2, x3, x4)  =  gA_in_ggga(x1, x2, x3)
gA_out_ggga(x1, x2, x3, x4)  =  gA_out_ggga(x1, x2, x3, x4)
U1_ggga(x1, x2, x3, x4, x5, x6)  =  U1_ggga(x1, x2, x3, x4, x6)
U4_gga(x1, x2, x3, x4, x5)  =  U4_gga(x1, x2, x3, x5)
U5_gga(x1, x2, x3, x4, x5, x6, x7)  =  U5_gga(x1, x2, x3, x4, x5, x7)
FC_IN_GGA(x1, x2, x3)  =  FC_IN_GGA(x1, x2)

We have to consider all (P,R,Pi)-chains

(17) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(18) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

FC_IN_GGA(.(T489, T490), .(T488, .(T491, T492)), T494) → FC_IN_GGA(.(T491, .(T488, .(T489, T490))), T492, T494)

R is empty.
The argument filtering Pi contains the following mapping:
.(x1, x2)  =  .(x1, x2)
FC_IN_GGA(x1, x2, x3)  =  FC_IN_GGA(x1, x2)

We have to consider all (P,R,Pi)-chains

(19) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(20) Obligation:

Q DP problem:
The TRS P consists of the following rules:

FC_IN_GGA(.(T489, T490), .(T488, .(T491, T492))) → FC_IN_GGA(.(T491, .(T488, .(T489, T490))), T492)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(21) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • FC_IN_GGA(.(T489, T490), .(T488, .(T491, T492))) → FC_IN_GGA(.(T491, .(T488, .(T489, T490))), T492)
    The graph contains the following edges 2 > 2

(22) YES